//使用经过二次封装的axios实例发请求
import service from "../../utils/request";

//一个接口封装成一个函数
export function banner_add( payload = {}){
    return service({
        url:'/admin/banner/add',
        method:'post',
        data: payload
    })
}
export function banner_list( payload = {}){
    return service({
        url:'/admin/banner/list',
        method:'get',
        params: payload
    })
}
export function banner_updateFlag( payload = {}){
    return service({
        url:'/admin/banner/updateFlag',
        method:'post',
        data: payload
    })
}
export function banner_delete( payload = {}){
    return service({
        url:'/admin/banner/delete',
        method:'get',
        params: payload
    })
}

//...